namespace RAG.Domain.Interfaces;

/// <summary>
/// 领域事件发布器接口
/// </summary>
public interface IDomainEventPublisher
{
    Task PublishAsync<T>(T domainEvent) where T : IDomainEvent;
    Task PublishAsync(IEnumerable<IDomainEvent> domainEvents);
} 